package com.ican.domain.product;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.ican.domain.common.BaseEntity;

@Entity
@Table(name="t_option")
public class Option extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    
    private String nameCode;
    private String optionName;
    private Integer langId;
    private String langName;
    private Integer ocOptionId;
    
    private List<OptionValue> values;

    @Column(name="name_code")
    public String getNameCode() {
        return nameCode;
    }
    public void setNameCode(String nameCode) {
        this.nameCode = nameCode;
    }
    @Column(name="option_name")
    public String getOptionName() {
        return optionName;
    }
    public void setOptionName(String optionName) {
        this.optionName = optionName;
    }
    @Column(name="lang_id")
    public Integer getLangId() {
        return langId;
    }
    public void setLangId(Integer langId) {
        this.langId = langId;
    }
    @Column(name="lang_name")
    public String getLangName() {
        return langName;
    }
    public void setLangName(String langName) {
        this.langName = langName;
    }
    @Column(name="oc_option_id")
    public Integer getOcOptionId() {
        return ocOptionId;
    }
    public void setOcOptionId(Integer ocOptionId) {
        this.ocOptionId = ocOptionId;
    }

    @Transient
    public List<OptionValue> getValues() {
        return values;
    }
    public void setValues(List<OptionValue> values) {
        this.values = values;
    }
}
